package day240730.non_enum_demo;

public class Day {
    //类型 名字 =值
     public static final Day MONDAY =new Day("MONDAY");
    public static final Day TUESDAY =new Day("TUESDAY");
    public static final Day WEDNESDAY =new Day("WEDNESDAY");
    public static final Day THURSDAY =new Day("THURSDAY");
    public static final Day FRIDAY =new Day("FRIDAY");
    public static final Day SATURDAY =new Day("SATURDAY");
    public static final Day SUNDAY =new Day("SUNDAY");

    private final String name;

    public Day(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
